﻿using System;
using System.Collections.Generic;
using System.Text;

namespace UPNP.IO
{
	/// <summary>
	/// Connection to service device was lost.
	/// 
	/// The device needs to be reacquired by a DeviceFinder or SingletonDeviceFinder.
	/// </summary>
	[global::System.Serializable]
	public class DeviceConnectionLostException : Exception
	{

		public DeviceConnectionLostException() { }
		public DeviceConnectionLostException(Device device) : base(device.UniqueDeviceName) { }
		public DeviceConnectionLostException(string message) : base(message) { }
		public DeviceConnectionLostException(Device device, Exception inner) : base(device.UniqueDeviceName, inner) { }
		public DeviceConnectionLostException(string message, Exception inner) : base(message, inner) { }
		protected DeviceConnectionLostException(
		  System.Runtime.Serialization.SerializationInfo info,
		  System.Runtime.Serialization.StreamingContext context)
			: base(info, context) { }
	}
}
